// 表格列类型定义
const TableColumnType = [
    "number",     // id
    "number",     // roleId
    "number",     // userId
    "dateTime",   // createTime
    "dateTime",   // updateTime
    "number"      // isDeleted
];

// 表格列配置
const TableColumns = [
    {
        prop: "id",
        sortable: true,
        headerAlign: "center",
        align: "center",
        label: "主键id"
    },
    {
        prop: "roleId",
        headerAlign: "center",
        align: "center",
        label: "角色id"
    },
    {
        prop: "userId",
        headerAlign: "center",
        align: "center",
        label: "用户id"
    },
    {
        prop: "createTime",
        sortable: true,
        headerAlign: "center",
        align: "center",
        label: "创建时间"
    },
    {
        prop: "updateTime",
        sortable: true,
        headerAlign: "center",
        align: "center",
        label: "更新时间"
    },
    {
        prop: "isDeleted",
        headerAlign: "center",
        align: "center",
        label: "删除标记（0:不可用 1:可用）"
    }
];

// 字段标签
const labels = {
    id: "主键id",
    roleId: "角色id",
    userId: "用户id",
    createTime: "创建时间",
    updateTime: "更新时间",
    isDeleted: "删除标记"
};

// 选项配置
const options = {
    isDeleted: [
        { value: 0, label: "不可用" },
        { value: 1, label: "可用" }
    ]
};

// 统一导出配置
export const RoleUserTableConfig = {
    TableColumnType,
    TableColumns,
    labels,
    options
};

export default RoleUserTableConfig;